//
//  UIView+Common.h
//  XieZB
//
//  Created by Sam on 16/10/24.
//  Copyright © 2016年 XieZB. All rights reserved.
//

#import "UIBadgeView.h"

typedef NS_ENUM(NSInteger, BadgePositionType) {
    
    BadgePositionTypeDefault = 0,
    BadgePositionTypeMiddle
};


#import <UIKit/UIKit.h>

@interface UIView (Common)



- (void)addBadgeTip:(NSString *)badgeValue withCenterPosition:(CGPoint)center;
- (void)addBadgeTip:(NSString *)badgeValue;
- (void)addBadgePoint:(NSInteger)pointRadius withPosition:(BadgePositionType)type;
- (void)addBadgePoint:(NSInteger)pointRadius withPointPosition:(CGPoint)point;
- (void)addBadgeTipWithPopAnimation:(NSString *)badgeValue;
- (void)removeBadgePoint;
- (void)removeBadgeTips;


- (void)setY:(CGFloat)y;
- (void)setX:(CGFloat)x;
- (void)setOrigin:(CGPoint)origin;
- (void)setHeight:(CGFloat)height;
- (void)setWidth:(CGFloat)width;
- (void)setSize:(CGSize)size;

-(void)showProcess;
-(void)hideProcess;
-(void)showSuccess:(NSString *)info;
-(void)showError:(NSString *)info;
- (void)showProcessWithStatus:(NSString *)status process:(CGFloat)process;

@end
